package com.qfjy.service.impl.example1;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @ClassName EmailServiceImpl
 * @Description TODO 发送邮件 系统
 * @Author guoweixin
 * @Date 2022/11/21
 * @Version 1.0
 */
@Service
@Slf4j
public class EmailServiceImpl {

    @Value("${server.port}")
    private int port;

    @RabbitListener(queues = {"emailQueue"})
    public void sendEmail(String cardId){
        log.info("端口号是："+port+"发送邮件成功{}",cardId);
    }
}
